import request from '@/utils/request'

// 获取仪表盘数据
export function getDashboardData() {
  return request({
    url: '/media/dashboard/getDashboardData',
    method: 'get'
  })
}

// 获取基础指标统计
export function getBaseMetrics() {
  return request({
    url: '/media/dashboard/getBaseMetrics',
    method: 'get'
  })
}

// 获取业务品牌分布
export function getBusinessBrandDistribution() {
  return request({
    url: '/media/dashboard/getBusinessBrandDistribution',
    method: 'get'
  })
}

// 获取用户价值等级分布
export function getUserValueLevelDistribution() {
  return request({
    url: '/media/dashboard/getUserValueLevelDistribution',
    method: 'get'
  })
}

// 获取电视消费水平分布
export function getTvConsumeLevelDistribution() {
  return request({
    url: '/media/dashboard/getTvConsumeLevelDistribution',
    method: 'get'
  })
}

// 获取宽带消费水平分布
export function getBroadbandConsumeLevelDistribution() {
  return request({
    url: '/media/dashboard/getBroadbandConsumeLevelDistribution',
    method: 'get'
  })
}

// 获取用户增长趋势
export function getUserGrowthTrend(params) {
  return request({
    url: '/media/dashboard/getUserGrowthTrend',
    method: 'get',
    params: params
  })
}